package io.zhengsh.br1.util;

import io.lettuce.core.RedisClient;
import io.lettuce.core.RedisURI;

public class RedisUtils {

    private static RedisClient redisClient;

    static {
        RedisURI redisUri = RedisURI.builder().withHost("localhost").withPort(6379).build();
        // 获取客户端
        redisClient = RedisClient.create(redisUri);
    }

    public static RedisClient getRedisClient() {
        return redisClient;
    }

}
